﻿<%@ Page Language="C#" %>

<script runat="server">
    public void Server_OpenDialog(object sender, EventArgs e)
    {
        DemoDialog.AutoOpen = true;
    }
    
</script>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
</head>
<body>
    <form id="form1" runat="server">
    <asp:UpdateProgress ID="UpdateProgress2" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
        <ProgressTemplate>
            <span>
                <div class="dna-state-loading-s">
                    <div>
                    </div>
                </div>
                Loading...</span>
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <br />
            <br />
            <DotNetAge:SimpleButton ID="SimpleButton1" runat="server" Text="Open Dialog" OnClick="Server_OpenDialog" />
            <br />
            <DotNetAge:Dialog ID="DemoDialog" runat="server" Draggable="true" Resizable="false"
                Title="Server Dialog">
                <Buttons>
                    <DotNetAge:DialogButton Text="OK" OnClientClick="$(this).dialog('close')" />
                </Buttons>
                <BodyTemplate>
                    <div style="padding: 30px;">
                        This is a Dialog shows via Server.
                    </div>
                </BodyTemplate>
            </DotNetAge:Dialog>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
